import processing.core.*;
import processing.xml.*;

import java.awt.event.*;

import java.applet.*;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.MouseEvent;
import java.awt.event.KeyEvent;
import java.awt.event.FocusEvent;
import java.awt.Image;
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import java.util.zip.*;
import java.util.regex.*;

public class sketch_dec14a extends PApplet {

	float y;

	public void setup() {
		size(400, 400);

		// add mouse wheel listener
		frame.addMouseWheelListener(new MouseWheelInput());

		y = height / 2;

	}

	public void draw() {
		background(100);
		ellipse(width / 2, y, 50, 50);
	}

	// convenience class to listen for MouseWheelEvent
	// modify mouseWheelMoved() for your own purposes

	class MouseWheelInput implements MouseWheelListener {

		public void mouseWheelMoved(MouseWheelEvent e) {
			int step = e.getWheelRotation();
			y = y + step * 5;
		}

	}

	static public void main(String args[]) {
		PApplet.main(new String[] { "--present", "--bgcolor=#666666",
				"--stop-color=#cccccc", "sketch_dec14a" });
	}
}
